﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SettingPushArea.aspx.cs" Inherits="msBsc.WebUi.ShpMana.SettingPushArea" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>设置默认推荐地区</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/usermenu.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/from.css" rel="stylesheet" />
    <link href="/jqPlugin/hdfu/hdfu.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Seller/sReleaseForum.css" rel="stylesheet" />
    <link href="/jqPlugin/kindeditor/themes/default/default.css" type="text/css" rel="stylesheet" />
    <style>
        .selArea {
            width: 200px;
            height: 30px;
            line-height: 30px;
            margin-right: 10px;
            font-family: 微软雅黑;
            font-size: 16px;
            color: #808080;
        }
    </style>
</head>
<body>
    <div class="wf_all">
        <div class="main-container">
            <div class="main-Info">
                <div class="main-horizontal">
                    <div class="r_row">
                        <span class="control-span" style="width: 200px">请选择推荐地区</span>
                        <div class="controls">
                            <select class="selArea" id="selCountry">
                                <option value="0">请选择</option>
                                <option value="DF6723BE-A25C-4F77-BB49-A1662D3E6F2A">中国</option>
                                <option value="453370FE-8295-41EC-A41C-B6F650AD1B4C">亚洲</option>
                                <option value="927D5F28-C4FB-46A9-940C-B07DF0A04018">北美洲</option>
                                <option value="1FEAF456-7C76-41C8-A3D0-F9C12415A736">南美洲</option>
                                <option value="4E2B4524-E9CB-4E20-9224-E58EB636D1C7">非洲</option>
                                <option value="67FA6A8D-951C-4B53-AE1E-70DCB97E11DE">欧洲</option>
                                <option value="0B772F3D-D8F8-42E3-9019-81FE6F772236">大洋洲</option>
                            </select>
                            <select class="selArea" id="selCity">
                                <option value="0">请选择</option>
                            </select>
                            <xmp id="country_city_list" style="display: none">
                                <option value="0">请选择</option>
            {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
                   <option value="{{d.rows[i].COUNTRY_CITY_ID}}">{{d.rows[i].COUNTRY_CITY_NME}}</option>
            {{#} }}        
            </xmp>
                            <select class="selArea" id="selDestination">
                                <option value="0">请选择</option>
                            </select>
                            <xmp id="city_des_list" style="display: none">
                                    <option value="0">请选择</option>
            {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
                   <option value="{{d.rows[i].COUNTRY_CITY_ID}}">{{d.rows[i].COUNTRY_CITY_NME}}</option>
            {{#} }}
            </xmp>


                        </div>
                    </div>
                    <div class="r_row">
                        <div class="controls">
                            <input type="button" style="margin-left: 200px; margin-top: 40px; cursor: pointer; width: 140px; background-color: #3c93e8; color: #fff; line-height: 30px; border: 0" id="btnSubmit" value="确认提交" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--start JS引用-->
    <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script src="/jqPlugin/js/jBase.js"></script>
    <script src="/jqPlugin/js/jBPage.js"></script>
    <script src="/jqPlugin/js/laytpl.js"></script>
    <script src='/??jqPlugin/kindeditor/kindeditor.js,jqPlugin/kindeditor/lang/zh_CN.js'
        type='text/javascript'></script>
    <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>

    <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
    <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
    <!--end JS引用-->

    <script type="text/javascript">
        function SetAreaInfo() {
            $("#selCountry").change(function () {
                $("#selCity").html("<option value='0'>请选择</option>");
                $("#selDestination").html("<option value='0'>请选择</option>");
                var _opartParam = new jsonRow();
                _opartParam.AddCell("countryId", $("#selCountry").val());
                _opartParam.AddCell("cityId", $("#selCity").val());
                _opartParam.AddCell("ACTION", "changeArea");
                ajaxComm(_opartParam);
            })

            $("#selCity").change(function () {
                $("#selDestination").html("<option value='0'>请选择</option>");
                var _opartParam = new jsonRow();
                _opartParam.AddCell("cityId", $("#selCity").val());
                _opartParam.AddCell("ACTION", "changeArea");
                ajaxComm(_opartParam);
            })
        }
        SetAreaInfo();

        $("#btnSubmit").click(function () {
            var opart = new jsonRow();
            opart.AddCell("countryId", $("#selCountry").val());
            opart.AddCell("cityId", $("#selCity").val());
            opart.AddCell("destinationId", $("#selDestination").val());
            opart.AddCell("ACTION", "SetDefaultArea");

            ajaxComm(opart);
        })
    </script>
</body>
</html>
